<script>
import KtTable from "/src/components/node-kantboot/components/KtTable/KtTable.vue";
import columns from "./config/columns.config.js"
import i18nEditDialog from "./components/I18nEditDialog.vue";
import KtTableDialogOfSave from "/src/components/node-kantboot/components/KtTable/KtTableDialogOfSave.vue";
import DialogOfSave from "/src/views/manage/shop/goodType/components/DialogOfSave.vue";

export default {
  components: {DialogOfSave, KtTableDialogOfSave, KtTable, i18nEditDialog},
  data() {
    return {
      columns
    }
  },
  mounted() {
  },
  methods: {
    toI18nEdit(row) {
      this.$refs.i18nEditDialog.open(row);
    }
  }
}
</script>

<template>

  <dialog-of-save
      :columns="columns"
      requestUri="/business-shop-web/admin/shopGoodsType"
      ref="dialogOfSave"
      @saveSuccess="()=>{$refs.ktTable.refresh()}"
  ></dialog-of-save>
<!--  <kt-table-->
<!--      :columns="columns"-->
<!--      :is-has-children="true"-->
<!--      requestUri="/business-shop-web/admin/shopGoodsTypeHasChildren"-->
<!--      ref="ktTable">-->
<!--    <template #operationAppend="{row}">-->
<!--      <div style="height: 10px"></div>-->
<!--      <div>-->
<!--        <el-button type="primary" @click="toI18nEdit(row)">国际化管理</el-button>-->
<!--      </div>-->
<!--      <div style="height: 10px"></div>-->
<!--      <div>-->
<!--        <el-button @click="$refs.dialogOfSave.open(row.id)">添加子分类</el-button>-->
<!--      </div>-->
<!--    </template>-->
<!--  </kt-table>-->


  <i18n-edit-dialog ref="i18nEditDialog"></i18n-edit-dialog>
</template>

<style scoped>

</style>